package com.ruoyi.web.controller.test;

import com.ruoyi.config.GloablConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName NacosValueController
 * @Description TODO
 * @Author guojinyuan
 * @Date 2023/10/18 17:43
 * @Version 1.0
 */
@RestController
@RequestMapping("/nacos")
public class NacosValueController {

    @Resource
    private GloablConfig gloablConfig;


    @GetMapping("test")
    public String test(){
        return gloablConfig.getTest();
    }
}
